package com.hvtt.web.models;

import java.io.Serializable;
import org.primefaces.model.StreamedContent;

public class C_blog implements Serializable{
	private long iD = 0;
	private String tieuDe = "";
	private String hinhAnh = "";
	private String tomTat = "";
	private String noiDung = "";
	private String nguoiDang = "";
	private java.sql.Date ngayDang = new java.sql.Date(0);
	private int trangThai = 0;
	private int thuTu = 0;
        private StreamedContent fileHinhAnh = null;
        
	public C_blog() {}
	public C_blog (long iD,String tieuDe,String hinhAnh,String tomTat,String noiDung,String nguoiDang,java.sql.Date ngayDang,int trangThai,int thuTu){
		this.iD = iD;
		this.tieuDe = tieuDe;
		this.hinhAnh = hinhAnh;
		this.tomTat = tomTat;
		this.noiDung = noiDung;
		this.nguoiDang = nguoiDang;
		this.ngayDang = ngayDang;
		this.trangThai = trangThai;
		this.thuTu = thuTu;
	}
	public long getID(){return iD;}
	public void setID(long iD){ this.iD = iD;}
	public String getTieuDe(){return tieuDe;}
	public void setTieuDe(String tieuDe){ this.tieuDe = tieuDe;}
	public String getHinhAnh(){return hinhAnh;}
        public String getFullFileHinhAnh(){
            
            return hinhAnh;
        }
	public void setHinhAnh(String hinhAnh){ this.hinhAnh = hinhAnh;}
	public String getTomTat(){return tomTat;}
	public void setTomTat(String tomTat){ this.tomTat = tomTat;}
	public String getNoiDung(){return noiDung;}
	public void setNoiDung(String noiDung){ this.noiDung = noiDung;}
	public String getNguoiDang(){return nguoiDang;}
	public void setNguoiDang(String nguoiDang){ this.nguoiDang = nguoiDang;}
	public java.sql.Date getNgayDang(){return ngayDang;}
	public void setNgayDang(java.sql.Date ngayDang){ this.ngayDang = ngayDang;}
	public int getTrangThai(){return trangThai;}
	public void setTrangThai(int trangThai){ this.trangThai = trangThai;}
	public int getThuTu(){return thuTu;}
	public void setThuTu(int thuTu){ this.thuTu = thuTu;}
	public void resetAttribute() {
		iD = 0;
		tieuDe = "";
		hinhAnh = "";
		tomTat = "";
		noiDung = "";
		nguoiDang = "";
		ngayDang = new java.sql.Date(0);
		trangThai = 0;
		thuTu = 0;
	}

    /**
     * @return the fileHinhAnh
     */
    public StreamedContent getFileHinhAnh() {
        return fileHinhAnh;
    }

    /**
     * @param fileHinhAnh the fileHinhAnh to set
     */
    public void setFileHinhAnh(StreamedContent fileHinhAnh) {
        this.fileHinhAnh = fileHinhAnh;
    }
}